package com.x.Part10_super;

import java.sql.SQLOutput;

/**
 * ClassName: Person
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.02.28 0:05
 */
public class Person {
    String id;
    String name;
    private int age;

    public Person(){
        System.out.println("Person()...");
    }

    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Person(String id,String name,int age){
        this.age=age;
        this.name=name;
        this.id=id;
    }



    public void eat(){
        System.out.println("eat");
    }
}
